import request from '@/common/request.js'

export function getCart(data) {
	return request.globalRequest('/cart/getCart', 'POST', data, 2);
}

export function addCart(data) {
	return request.globalRequest('/cart/addCart', 'POST', data, 2);
}

export function removeCart(data) {
	return request.globalRequest('/cart/remove', 'POST', data, 2);
}

export function modifyCart(data) {
	return request.globalRequest('/cart/modify', 'POST', data, 2);
}

export function clearCart(data) {
	return request.globalRequest('/cart/clear', 'POST', data, 2);
}
